
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module pygtk_gui_1</title>
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>pygtk_gui_1</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/narasimhan/pygtk_gui/pygtk_gui_1.py">/home/narasimhan/pygtk_gui/pygtk_gui_1.py</a></font></td></tr></table>
    <p><tt>Python&nbsp;GTK&nbsp;based&nbsp;File&nbsp;Browser</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
    
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="gtk.html">gtk</a><br>
</td><td width="25%" valign=top><a href="xmlrpclib.html">xmlrpclib</a><br>
</td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
    
<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="pygtk_gui_1.html#FileSaveDialog">FileSaveDialog</a>
</font></dt><dt><font face="helvetica, arial"><a href="pygtk_gui_1.html#MainWindow">MainWindow</a>
</font></dt></dl>
 <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="FileSaveDialog">class <strong>FileSaveDialog</strong></a></font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>This&nbsp;class&nbsp;creates&nbsp;a&nbsp;file&nbsp;save&nbsp;dialog&nbsp;and&nbsp;handles&nbsp;the&nbsp;associated&nbsp;widget&nbsp;events.It&nbsp;also&nbsp;saves&nbsp;the&nbsp;file&nbsp;to&nbsp;disk.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="FileSaveDialog-__init__"><strong>__init__</strong></a>(self, actualpath, server)</dt></dl>

<dl><dt><a name="FileSaveDialog-delete_event"><strong>delete_event</strong></a>(self, widget, event, data<font color="#909090">=None</font>)</dt></dl>

<dl><dt><a name="FileSaveDialog-on_cancel_clicked"><strong>on_cancel_clicked</strong></a>(self, widget)</dt></dl>

<dl><dt><a name="FileSaveDialog-on_ok_clicked"><strong>on_ok_clicked</strong></a>(self, widget)</dt></dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="MainWindow">class <strong>MainWindow</strong></a></font></td></tr>
    
<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="MainWindow-__init__"><strong>__init__</strong></a>(self)</dt></dl>

<dl><dt><a name="MainWindow-backitem_activate"><strong>backitem_activate</strong></a>(self, widget, data<font color="#909090">=None</font>)</dt></dl>

<dl><dt><a name="MainWindow-create_window"><strong>create_window</strong></a>(self)</dt><dd><tt>Creates&nbsp;a&nbsp;File&nbsp;Browser&nbsp;Window</tt></dd></dl>

<dl><dt><a name="MainWindow-createmenu"><strong>createmenu</strong></a>(self)</dt><dd><tt>Creates&nbsp;the&nbsp;menu&nbsp;inside&nbsp;the&nbsp;File&nbsp;Browser&nbsp;Window</tt></dd></dl>

<dl><dt><a name="MainWindow-delete_event"><strong>delete_event</strong></a>(self, widget, event, data<font color="#909090">=None</font>)</dt></dl>

<dl><dt><a name="MainWindow-get_dir_contents"><strong>get_dir_contents</strong></a>(self, val)</dt><dd><tt>Gets&nbsp;the&nbsp;directory&nbsp;contents&nbsp;of&nbsp;"a&nbsp;double&nbsp;clicked&nbsp;&nbsp;row"&nbsp;in&nbsp;Tree&nbsp;Widget&nbsp;by&nbsp;executing&nbsp;a&nbsp;rpc&nbsp;call&nbsp;to&nbsp;the&nbsp;server<br>
&nbsp;<br>
Input:The&nbsp;Directory&nbsp;name<br>
Side&nbsp;Effect:The&nbsp;directory&nbsp;listing&nbsp;from&nbsp;the&nbsp;server,Population&nbsp;of&nbsp;Tree&nbsp;Widget</tt></dd></dl>

<dl><dt><a name="MainWindow-get_file"><strong>get_file</strong></a>(self, actual_path)</dt><dd><tt>Handler&nbsp;for&nbsp;fetching&nbsp;a&nbsp;file&nbsp;from&nbsp;the&nbsp;GFS<br>
&nbsp;<br>
Input&nbsp;&nbsp;:&nbsp;Path&nbsp;of&nbsp;the&nbsp;file&nbsp;in&nbsp;GFS<br>
&nbsp;<br>
Output&nbsp;:&nbsp;Dialog&nbsp;box&nbsp;for&nbsp;saving&nbsp;the&nbsp;file&nbsp;to&nbsp;the&nbsp;user&nbsp;specified&nbsp;path</tt></dd></dl>

<dl><dt><a name="MainWindow-homeitem_activate"><strong>homeitem_activate</strong></a>(self, widget, data<font color="#909090">=None</font>)</dt><dd><tt>Initializes&nbsp;the&nbsp;Tree&nbsp;Widget&nbsp;with&nbsp;the&nbsp;contents&nbsp;of&nbsp;HNFS&nbsp;Home&nbsp;directory</tt></dd></dl>

<dl><dt><a name="MainWindow-main"><strong>main</strong></a>(self)</dt></dl>

<dl><dt><a name="MainWindow-openitem_activate"><strong>openitem_activate</strong></a>(self, widget, data<font color="#909090">=None</font>)</dt></dl>

<dl><dt><a name="MainWindow-populate_view"><strong>populate_view</strong></a>(self, data)</dt><dd><tt>Populates&nbsp;ListStore&nbsp;(&nbsp;indirectly&nbsp;List&nbsp;)&nbsp;with&nbsp;the&nbsp;given&nbsp;data<br>
&nbsp;<br>
Input:data&nbsp;for&nbsp;the&nbsp;List&nbsp;Store<br>
SideEffect:&nbsp;Updated&nbsp;List&nbsp;Widget</tt></dd></dl>

<dl><dt><a name="MainWindow-quititem_activate"><strong>quititem_activate</strong></a>(self, widget, data<font color="#909090">=None</font>)</dt></dl>

<dl><dt><a name="MainWindow-register"><strong>register</strong></a>(self)</dt></dl>

<dl><dt><a name="MainWindow-registeritem_activate"><strong>registeritem_activate</strong></a>(self, widget, data<font color="#909090">=None</font>)</dt></dl>

<dl><dt><a name="MainWindow-row_activated"><strong>row_activated</strong></a>(self, widget, row, data<font color="#909090">=None</font>)</dt><dd><tt>Handles&nbsp;the&nbsp;activate&nbsp;row&nbsp;event&nbsp;in&nbsp;Tree&nbsp;Widget<br>
&nbsp;<br>
Input:row&nbsp;which&nbsp;is&nbsp;double&nbsp;clicked<br>
&nbsp;<br>
Ouput:File&nbsp;Save&nbsp;dialog&nbsp;if&nbsp;it&nbsp;is&nbsp;a&nbsp;file&nbsp;or&nbsp;directory&nbsp;contents&nbsp;in&nbsp;case&nbsp;of&nbsp;a&nbsp;directory</tt></dd></dl>

</td></tr></table></td></tr></table>
</body></html>